package com.zhentao.service.impl;

import com.zhentao.mapper.MaOrdersMapper;
import com.zhentao.model.common.buiness.dto.OrderDto;
import com.zhentao.model.common.buiness.pojo.Orders;
import com.zhentao.model.common.buiness.vo.OrdersVo;
import com.zhentao.model.common.dtos.ResponseResult;
import com.zhentao.service.MaOrdersService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author 王越潇
 * @version 1.0
 * @Date 2024/9/19 10:15
 * @Type
 */
@Service
public class MaOrdersServiceImpl implements MaOrdersService {
    @Resource
    private MaOrdersMapper maOrdersMapper;
    @Override
    public ResponseResult findOrders(OrderDto orderDto) {
        List<OrdersVo> orders = maOrdersMapper.findOrders(orderDto);
        return ResponseResult.okResult(orders);
    }
}
